package cn.ms.doctor.Controller;

import cn.ms.doctor.Service.RoleService;
import cn.ms.doctor.Utils.GlobalMessage;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Role")
public class RoleController {

    @Resource
    RoleService roleService;

    @RequestMapping("/isLogin/getRoles")
    public Object getRoles(){
        return new GlobalMessage(200,0,null,roleService.getRoles());
    }
}
